package zuoye;

import java.sql.SQLOutput;
import java.util.Scanner;

public class day2zy {
    public static void main(String[] args){
//1.
//        int a,b;
//        System.out.println("请输入第一个数：");
//        Scanner one = new Scanner(System.in);
//        a = one.nextInt();
//        System.out.println("请输入第二个数：");
//        Scanner two = new Scanner(System.in);
//        b = two.nextInt();
//        int sum = a+b;
//        int cha = a-b;
//        int ji = a*b;
//        int shang = a/b;
//        int yu = a%b;
//        System.out.println("和为："+sum);
//        System.out.println("差为："+cha);
//        System.out.println("积为："+ji);
//        System.out.println("商为："+shang);
//        System.out.println("余为："+yu);


//2.
//        System.out.println("请输入英寸数：");
//        Scanner a = new Scanner(System.in);
//        double y = a.nextDouble();
//        double l = y*2.54;
//        System.out.println("厘米为："+l);




//3.
//        System.out.println("请输入千克：");
//        Scanner a = new Scanner(System.in);
//        double q = a.nextDouble();
//        double b = q/0.4535924;
//        System.out.println(b+"磅");


//4.
//        System.out.println("请输入5位数：");
//        Scanner in = new Scanner(System.in);
//        int x = in.nextInt();
//        int w = x/10000;
//        int q = x%10000/1000;
//        int b = x%1000/100;
//        int s = x%1000%100/10;
//        int g = x%1000%100%10;
//        int ss = w+q+b+s+g;
//        System.out.println(ss);



//5.
//          char a = '张';
//          char b = '佳';
//          char c = '梦';
//          int d = a;
//          int e = b;
//          int f = c;
//          int sum = d+e+f;
//          System.out.println(sum);



//6.
//        int a,b,c;
//        System.out.println("请输入第一个数：");
//        Scanner one = new Scanner(System.in);
//        a = one.nextInt();
//        System.out.println("请输入第二个数：");
//        Scanner two = new Scanner(System.in);
//        b = two.nextInt();
//        System.out.println("请输入第三个数：");
//        Scanner three = new Scanner(System.in);
//        c = three.nextInt();
//        if (a>b&&a>c){
//            System.out.println("a大");
//        } else if (c>a&&c>b) {
//            System.out.println("c大");
//        }
//        else {
//            System.out.println("b大");
//        }


//7.
//        double a,b,c;
//        System.out.println("请输入语文成绩：");
//        Scanner one = new Scanner(System.in);
//        a = one.nextDouble();
//        System.out.println("请输入数学成绩：");
//        Scanner two = new Scanner(System.in);
//        b = two.nextDouble();
//        System.out.println("请输入英语成绩：");
//        Scanner three = new Scanner(System.in);
//        c = three.nextDouble();
//        double sum = a+b+c;
//        double pj = (a+b+c)/3;
//        System.out.println(sum);
//        System.out.println(pj);



//8.
//        double m,b;
//        System.out.println("请输入巴基斯坦人口数：（以亿为单位）");
//        Scanner one = new Scanner(System.in);
//        b = one.nextDouble();
//        System.out.println("请输入美国人口数：（以亿为单位）");
//        Scanner two = new Scanner(System.in);
//        m = two.nextDouble();
//        if (m>b){
//            System.out.println("美国人口多");
//        } else if (m==b) {
//            System.out.println("一样多");
//        } else {
//            System.out.println("巴基斯坦人口多");
//        }
    }
}
